﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Runtime.CompilerServices;
using AutoR.Controls;
using AutoR.Models;
using AutoR.ViewModels.Setting;
using Plugin.Iconize;
using Prism.Mvvm;
using Syncfusion.ListView.XForms;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views.Setting
{
	// Token: 0x02000025 RID: 37
	[XamlFilePath("Views\\Setting\\ShipConfig.xaml")]
	public class ShipConfig : TabbedPage
	{
		// Token: 0x06000098 RID: 152 RVA: 0x00014A64 File Offset: 0x00012C64
		public ShipConfig()
		{
			this.InitializeComponent();
		}

		// Token: 0x06000099 RID: 153 RVA: 0x00014A72 File Offset: 0x00012C72
		private void ListView_OnItemTapped(object sender, Xamarin.Forms.ItemTappedEventArgs e)
		{
			((ShipConfigViewModel)base.BindingContext).SelectShip = (e.Item as UserShip);
		}

		// Token: 0x0600009A RID: 154 RVA: 0x00014A8F File Offset: 0x00012C8F
		private void Picker_OnSelectedIndexChanged(object sender, EventArgs e)
		{
			ShipConfigViewModel shipConfigViewModel = (ShipConfigViewModel)base.BindingContext;
			if (shipConfigViewModel == null)
			{
				return;
			}
			shipConfigViewModel.GenList();
		}

		// Token: 0x0600009B RID: 155 RVA: 0x00014AA8 File Offset: 0x00012CA8
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(ShipConfig).GetTypeInfo().Assembly.GetName(), "Views/Setting/ShipConfig.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			Label label = new Label();
			BindingExtension bindingExtension = new BindingExtension();
			string item = "全部";
			string item2 = "航母";
			string item3 = "轻母";
			string item4 = "装母";
			string item5 = "战列";
			string item6 = "航战";
			string item7 = "战巡";
			string item8 = "重巡";
			string item9 = "航巡";
			string item10 = "雷巡";
			string item11 = "轻巡";
			string item12 = "重炮";
			string item13 = "驱逐";
			string item14 = "潜母";
			string item15 = "潜艇";
			string item16 = "炮潜";
			string item17 = "补给";
			string item18 = "导驱";
			string item19 = "防驱";
			Picker picker = new Picker();
			BindingExtension bindingExtension2 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
			Label label2 = new Label();
			BindingExtension bindingExtension3 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer2 = new TapGestureRecognizer();
			Label label3 = new Label();
			StackLayout stackLayout = new StackLayout();
			BindingExtension bindingExtension4 = new BindingExtension();
			DataTemplate dataTemplate = new DataTemplate();
			ListView listView = new ListView();
			StackLayout stackLayout2 = new StackLayout();
			ContentPage contentPage = new ContentPage();
			BindingExtension bindingExtension5 = new BindingExtension();
			Label label4 = new Label();
			BindingExtension bindingExtension6 = new BindingExtension();
			Label label5 = new Label();
			StackLayout stackLayout3 = new StackLayout();
			BindingExtension bindingExtension7 = new BindingExtension();
			Image image = new Image();
			BindingExtension bindingExtension8 = new BindingExtension();
			BindingExtension bindingExtension9 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer3 = new TapGestureRecognizer();
			Image image2 = new Image();
			BindingExtension bindingExtension10 = new BindingExtension();
			BindingExtension bindingExtension11 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer4 = new TapGestureRecognizer();
			Image image3 = new Image();
			BindingExtension bindingExtension12 = new BindingExtension();
			BindingExtension bindingExtension13 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer5 = new TapGestureRecognizer();
			Image image4 = new Image();
			BindingExtension bindingExtension14 = new BindingExtension();
			BindingExtension bindingExtension15 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer6 = new TapGestureRecognizer();
			Image image5 = new Image();
			StackLayout stackLayout4 = new StackLayout();
			StackLayout stackLayout5 = new StackLayout();
			Frame frame = new Frame();
			BindingExtension bindingExtension16 = new BindingExtension();
			Label label6 = new Label();
			BindingExtension bindingExtension17 = new BindingExtension();
			Label label7 = new Label();
			BindingExtension bindingExtension18 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer7 = new TapGestureRecognizer();
			Label label8 = new Label();
			BindingExtension bindingExtension19 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer8 = new TapGestureRecognizer();
			Label label9 = new Label();
			StackLayout stackLayout6 = new StackLayout();
			BindingExtension bindingExtension20 = new BindingExtension();
			BindingExtension bindingExtension21 = new BindingExtension();
			GridLayout gridLayout = new GridLayout();
			DataTemplate dataTemplate2 = new DataTemplate();
			SfListView sfListView = new SfListView();
			StackLayout stackLayout7 = new StackLayout();
			ContentPage contentPage2 = new ContentPage();
			NameScope nameScope = new NameScope();
			NameScope.SetNameScope(this, nameScope);
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			this.SetValue(Page.TitleProperty, "舰船配置");
			contentPage.SetValue(Page.TitleProperty, "舰船");
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label.SetValue(Label.TextProperty, "筛选： ");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout.Children.Add(label);
			bindingExtension.Path = "ShipType";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			picker.SetBinding(Picker.SelectedIndexProperty, binding);
			picker.SetValue(VisualElement.WidthRequestProperty, 60.0);
			picker.SelectedIndexChanged += this.Picker_OnSelectedIndexChanged;
			picker.Items.Add(item);
			picker.Items.Add(item2);
			picker.Items.Add(item3);
			picker.Items.Add(item4);
			picker.Items.Add(item5);
			picker.Items.Add(item6);
			picker.Items.Add(item7);
			picker.Items.Add(item8);
			picker.Items.Add(item9);
			picker.Items.Add(item10);
			picker.Items.Add(item11);
			picker.Items.Add(item12);
			picker.Items.Add(item13);
			picker.Items.Add(item14);
			picker.Items.Add(item15);
			picker.Items.Add(item16);
			picker.Items.Add(item17);
			picker.Items.Add(item18);
			picker.Items.Add(item19);
			stackLayout.Children.Add(picker);
			label2.SetValue(Label.TextProperty, "移除");
			label2.SetValue(Label.TextColorProperty, Color.OrangeRed);
			label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
			bindingExtension2.Path = "RemoveCommand";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding2);
			label2.GestureRecognizers.Add(tapGestureRecognizer);
			stackLayout.Children.Add(label2);
			label3.SetValue(Label.TextProperty, "确定");
			label3.SetValue(Label.TextColorProperty, Color.Green);
			label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label3.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 5.0, 0.0));
			bindingExtension3.Path = "OKCommand";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			tapGestureRecognizer2.SetBinding(TapGestureRecognizer.CommandProperty, binding3);
			label3.GestureRecognizers.Add(tapGestureRecognizer2);
			stackLayout.Children.Add(label3);
			stackLayout2.Children.Add(stackLayout);
			bindingExtension4.Path = "List";
			BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
			listView.SetBinding(ItemsView<Cell>.ItemsSourceProperty, binding4);
			listView.SetValue(ListView.HasUnevenRowsProperty, true);
			listView.ItemTapped += this.ListView_OnItemTapped;
			IDataTemplate dataTemplate3 = dataTemplate;
			ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26 <InitializeComponent>_anonXamlCDataTemplate_ = new ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26();
			object[] array = new object[0 + 5];
			array[0] = dataTemplate;
			array[1] = listView;
			array[2] = stackLayout2;
			array[3] = contentPage;
			array[4] = this;
			<InitializeComponent>_anonXamlCDataTemplate_.parentValues = array;
			<InitializeComponent>_anonXamlCDataTemplate_.root = this;
			dataTemplate3.LoadTemplate = new Func<object>(<InitializeComponent>_anonXamlCDataTemplate_.LoadDataTemplate);
			listView.SetValue(ItemsView<Cell>.ItemTemplateProperty, dataTemplate);
			stackLayout2.Children.Add(listView);
			contentPage.SetValue(ContentPage.ContentProperty, stackLayout2);
			this.Children.Add(contentPage);
			contentPage2.SetValue(Page.TitleProperty, "装备");
			frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame.SetValue(View.MarginProperty, new Thickness(3.0));
			stackLayout3.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			bindingExtension5.Path = "Ship.Name";
			BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
			label4.SetBinding(Label.TextProperty, binding5);
			label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout3.Children.Add(label4);
			bindingExtension6.Path = "Ship.level";
			bindingExtension6.StringFormat = "Lv{0}";
			BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
			label5.SetBinding(Label.TextProperty, binding6);
			label5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label5.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			stackLayout3.Children.Add(label5);
			stackLayout5.Children.Add(stackLayout3);
			stackLayout4.SetValue(StackLayout.SpacingProperty, 0.0);
			stackLayout4.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			stackLayout4.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
			bindingExtension7.Path = "Ship.SmallImage";
			BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
			image.SetBinding(Image.SourceProperty, binding7);
			image.SetValue(VisualElement.WidthRequestProperty, 140.0);
			image.SetValue(VisualElement.HeightRequestProperty, 36.0);
			stackLayout4.Children.Add(image);
			bindingExtension8.Path = "Ship.Equipment1.Image";
			BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
			image2.SetBinding(Image.SourceProperty, binding8);
			image2.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image2.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image2.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 0.0, 0.0));
			bindingExtension9.Path = "SelectEquipCommand";
			BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
			tapGestureRecognizer3.SetBinding(TapGestureRecognizer.CommandProperty, binding9);
			tapGestureRecognizer3.SetValue(TapGestureRecognizer.CommandParameterProperty, "0");
			image2.GestureRecognizers.Add(tapGestureRecognizer3);
			stackLayout4.Children.Add(image2);
			bindingExtension10.Path = "Ship.Equipment2.Image";
			BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
			image3.SetBinding(Image.SourceProperty, binding10);
			image3.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image3.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image3.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension11.Path = "SelectEquipCommand";
			BindingBase binding11 = ((IMarkupExtension<BindingBase>)bindingExtension11).ProvideValue(null);
			tapGestureRecognizer4.SetBinding(TapGestureRecognizer.CommandProperty, binding11);
			tapGestureRecognizer4.SetValue(TapGestureRecognizer.CommandParameterProperty, "1");
			image3.GestureRecognizers.Add(tapGestureRecognizer4);
			stackLayout4.Children.Add(image3);
			bindingExtension12.Path = "Ship.Equipment3.Image";
			BindingBase binding12 = ((IMarkupExtension<BindingBase>)bindingExtension12).ProvideValue(null);
			image4.SetBinding(Image.SourceProperty, binding12);
			image4.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image4.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image4.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension13.Path = "SelectEquipCommand";
			BindingBase binding13 = ((IMarkupExtension<BindingBase>)bindingExtension13).ProvideValue(null);
			tapGestureRecognizer5.SetBinding(TapGestureRecognizer.CommandProperty, binding13);
			tapGestureRecognizer5.SetValue(TapGestureRecognizer.CommandParameterProperty, "2");
			image4.GestureRecognizers.Add(tapGestureRecognizer5);
			stackLayout4.Children.Add(image4);
			bindingExtension14.Path = "Ship.Equipment4.Image";
			BindingBase binding14 = ((IMarkupExtension<BindingBase>)bindingExtension14).ProvideValue(null);
			image5.SetBinding(Image.SourceProperty, binding14);
			image5.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image5.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image5.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension15.Path = "SelectEquipCommand";
			BindingBase binding15 = ((IMarkupExtension<BindingBase>)bindingExtension15).ProvideValue(null);
			tapGestureRecognizer6.SetBinding(TapGestureRecognizer.CommandProperty, binding15);
			tapGestureRecognizer6.SetValue(TapGestureRecognizer.CommandParameterProperty, "3");
			image5.GestureRecognizers.Add(tapGestureRecognizer6);
			stackLayout4.Children.Add(image5);
			stackLayout5.Children.Add(stackLayout4);
			frame.SetValue(ContentView.ContentProperty, stackLayout5);
			stackLayout7.Children.Add(frame);
			stackLayout6.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			bindingExtension16.Path = "SelectPos";
			BindingBase binding16 = ((IMarkupExtension<BindingBase>)bindingExtension16).ProvideValue(null);
			label6.SetBinding(Label.TextProperty, binding16);
			label6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			BindableObject bindableObject = label6;
			BindableProperty fontSizeProperty = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
			string value = "12";
			XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
			Type typeFromHandle = typeof(IProvideValueTarget);
			object[] array2 = new object[0 + 5];
			array2[0] = label6;
			array2[1] = stackLayout6;
			array2[2] = stackLayout7;
			array2[3] = contentPage2;
			array2[4] = this;
			object service;
			xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
			xamlServiceProvider.Add(typeof(IReferenceProvider), service);
			Type typeFromHandle2 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
			xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xmlNamespaceResolver.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
			xmlNamespaceResolver.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
			xmlNamespaceResolver.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
			xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ShipConfig).GetTypeInfo().Assembly));
			xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(116, 81)));
			bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
			stackLayout6.Children.Add(label6);
			bindingExtension17.Path = "SelectEquip.title";
			bindingExtension17.StringFormat = "当前选择:{0}";
			BindingBase binding17 = ((IMarkupExtension<BindingBase>)bindingExtension17).ProvideValue(null);
			label7.SetBinding(Label.TextProperty, binding17);
			label7.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			BindableObject bindableObject2 = label7;
			BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
			string value2 = "12";
			XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
			Type typeFromHandle3 = typeof(IProvideValueTarget);
			object[] array3 = new object[0 + 5];
			array3[0] = label7;
			array3[1] = stackLayout6;
			array3[2] = stackLayout7;
			array3[3] = contentPage2;
			array3[4] = this;
			object service2;
			xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array3, Label.FontSizeProperty, nameScope));
			xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
			Type typeFromHandle4 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
			xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xmlNamespaceResolver2.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
			xmlNamespaceResolver2.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
			xmlNamespaceResolver2.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
			xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ShipConfig).GetTypeInfo().Assembly));
			xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(117, 114)));
			bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
			stackLayout6.Children.Add(label7);
			label8.SetValue(Label.TextProperty, "移除");
			label8.SetValue(Label.TextColorProperty, Color.OrangeRed);
			label8.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label8.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
			bindingExtension18.Path = "EquipRemoveCommand";
			BindingBase binding18 = ((IMarkupExtension<BindingBase>)bindingExtension18).ProvideValue(null);
			tapGestureRecognizer7.SetBinding(TapGestureRecognizer.CommandProperty, binding18);
			label8.GestureRecognizers.Add(tapGestureRecognizer7);
			stackLayout6.Children.Add(label8);
			label9.SetValue(Label.TextProperty, "确定");
			label9.SetValue(Label.TextColorProperty, Color.Green);
			label9.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label9.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 5.0, 0.0));
			bindingExtension19.Path = "EquipOKCommand";
			BindingBase binding19 = ((IMarkupExtension<BindingBase>)bindingExtension19).ProvideValue(null);
			tapGestureRecognizer8.SetBinding(TapGestureRecognizer.CommandProperty, binding19);
			label9.GestureRecognizers.Add(tapGestureRecognizer8);
			stackLayout6.Children.Add(label9);
			stackLayout7.Children.Add(stackLayout6);
			bindingExtension20.Path = "Equip";
			BindingBase binding20 = ((IMarkupExtension<BindingBase>)bindingExtension20).ProvideValue(null);
			sfListView.SetBinding(SfListView.ItemsSourceProperty, binding20);
			sfListView.SetValue(SfListView.AutoFitModeProperty, AutoFitMode.Height);
			sfListView.SetValue(SfListView.SelectionModeProperty, SelectionMode.Single);
			bindingExtension21.Path = "SelectedItem";
			BindingBase binding21 = ((IMarkupExtension<BindingBase>)bindingExtension21).ProvideValue(null);
			sfListView.SetBinding(SfListView.SelectedItemProperty, binding21);
			sfListView.SetValue(SfListView.SelectionBackgroundColorProperty, Color.Red);
			gridLayout.SetValue(GridLayout.SpanCountProperty, 8);
			sfListView.SetValue(SfListView.LayoutManagerProperty, gridLayout);
			IDataTemplate dataTemplate4 = dataTemplate2;
			ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_27 <InitializeComponent>_anonXamlCDataTemplate_2 = new ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_27();
			object[] array4 = new object[0 + 5];
			array4[0] = dataTemplate2;
			array4[1] = sfListView;
			array4[2] = stackLayout7;
			array4[3] = contentPage2;
			array4[4] = this;
			<InitializeComponent>_anonXamlCDataTemplate_2.parentValues = array4;
			<InitializeComponent>_anonXamlCDataTemplate_2.root = this;
			dataTemplate4.LoadTemplate = new Func<object>(<InitializeComponent>_anonXamlCDataTemplate_2.LoadDataTemplate);
			sfListView.SetValue(SfListView.ItemTemplateProperty, dataTemplate2);
			stackLayout7.Children.Add(sfListView);
			contentPage2.SetValue(ContentPage.ContentProperty, stackLayout7);
			this.Children.Add(contentPage2);
		}

		// Token: 0x0600009C RID: 156 RVA: 0x00015C49 File Offset: 0x00013E49
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(ShipConfig));
		}

		// Token: 0x02000026 RID: 38
		[CompilerGenerated]
		private sealed class <InitializeComponent>_anonXamlCDataTemplate_26
		{
			// Token: 0x0600009E RID: 158 RVA: 0x00015C70 File Offset: 0x00013E70
			internal object LoadDataTemplate()
			{
				BindingExtension bindingExtension = new BindingExtension();
				Image image = new Image();
				BindingExtension bindingExtension2 = new BindingExtension();
				Label label = new Label();
				BindingExtension bindingExtension3 = new BindingExtension();
				Image image2 = new Image();
				BindingExtension bindingExtension4 = new BindingExtension();
				Image image3 = new Image();
				BindingExtension bindingExtension5 = new BindingExtension();
				Image image4 = new Image();
				BindingExtension bindingExtension6 = new BindingExtension();
				Image image5 = new Image();
				BindingExtension bindingExtension7 = new BindingExtension();
				Label label2 = new Label();
				BindingExtension bindingExtension8 = new BindingExtension();
				IconImage iconImage = new IconImage();
				StackLayout stackLayout = new StackLayout();
				BindingExtension bindingExtension9 = new BindingExtension();
				Label label3 = new Label();
				BindingExtension bindingExtension10 = new BindingExtension();
				Bloodbar bloodbar = new Bloodbar();
				BindingExtension bindingExtension11 = new BindingExtension();
				Label label4 = new Label();
				BindingExtension bindingExtension12 = new BindingExtension();
				Label label5 = new Label();
				BindingExtension bindingExtension13 = new BindingExtension();
				Label label6 = new Label();
				BindingExtension bindingExtension14 = new BindingExtension();
				Image image6 = new Image();
				BindingExtension bindingExtension15 = new BindingExtension();
				Image image7 = new Image();
				StackLayout stackLayout2 = new StackLayout();
				StackLayout stackLayout3 = new StackLayout();
				Frame frame = new Frame();
				ViewCell viewCell = new ViewCell();
				NameScope nameScope = new NameScope();
				NameScope.SetNameScope(viewCell, nameScope);
				frame.SetValue(Frame.OutlineColorProperty, Color.MediumBlue);
				frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(4.0));
				frame.SetValue(View.MarginProperty, new Thickness(2.0));
				stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
				stackLayout.SetValue(StackLayout.SpacingProperty, 2.0);
				bindingExtension.Path = "SmallImage";
				BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
				image.SetBinding(Image.SourceProperty, binding);
				image.SetValue(VisualElement.WidthRequestProperty, 80.0);
				image.SetValue(VisualElement.HeightRequestProperty, 21.0);
				stackLayout.Children.Add(image);
				bindingExtension2.Path = "level";
				bindingExtension2.StringFormat = "Lv{0}";
				BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
				label.SetBinding(Label.TextProperty, binding2);
				label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject = label;
				BindableProperty fontSizeProperty = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
				string value = "12";
				XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
				Type typeFromHandle = typeof(IProvideValueTarget);
				int length;
				object[] array = new object[(length = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array, 5, length);
				object[] array2 = array;
				array2[0] = label;
				array2[1] = stackLayout;
				array2[2] = stackLayout3;
				array2[3] = frame;
				array2[4] = viewCell;
				object service;
				xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
				xamlServiceProvider.Add(typeof(IReferenceProvider), service);
				Type typeFromHandle2 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
				xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26).GetTypeInfo().Assembly));
				xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(56, 123)));
				bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
				label.SetValue(VisualElement.WidthRequestProperty, 40.0);
				stackLayout.Children.Add(label);
				bindingExtension3.Path = "Equipment1.Image";
				BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
				image2.SetBinding(Image.SourceProperty, binding3);
				image2.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image2.SetValue(VisualElement.HeightRequestProperty, 22.0);
				image2.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout.Children.Add(image2);
				bindingExtension4.Path = "Equipment2.Image";
				BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
				image3.SetBinding(Image.SourceProperty, binding4);
				image3.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image3.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image3);
				bindingExtension5.Path = "Equipment3.Image";
				BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
				image4.SetBinding(Image.SourceProperty, binding5);
				image4.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image4.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image4);
				bindingExtension6.Path = "Equipment4.Image";
				BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
				image5.SetBinding(Image.SourceProperty, binding6);
				image5.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image5.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image5);
				bindingExtension7.Path = "Name";
				BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
				label2.SetBinding(Label.TextProperty, binding7);
				label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject2 = label2;
				BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
				string value2 = "12";
				XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
				Type typeFromHandle3 = typeof(IProvideValueTarget);
				int length2;
				object[] array3 = new object[(length2 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array3, 5, length2);
				object[] array4 = array3;
				array4[0] = label2;
				array4[1] = stackLayout;
				array4[2] = stackLayout3;
				array4[3] = frame;
				array4[4] = viewCell;
				object service2;
				xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
				xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
				Type typeFromHandle4 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
				xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver2.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver2.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver2.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26).GetTypeInfo().Assembly));
				xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(61, 100)));
				bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
				label2.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout.Children.Add(label2);
				iconImage.SetValue(IconImage.IconProperty, "md-lock");
				iconImage.SetValue(IconImage.IconColorProperty, Color.DeepSkyBlue);
				iconImage.SetValue(VisualElement.HeightRequestProperty, 18.0);
				iconImage.SetValue(VisualElement.WidthRequestProperty, 18.0);
				iconImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
				bindingExtension8.Path = "isLocked";
				BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
				iconImage.SetBinding(VisualElement.IsVisibleProperty, binding8);
				stackLayout.Children.Add(iconImage);
				stackLayout3.Children.Add(stackLayout);
				stackLayout2.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
				bindingExtension9.Path = "TypeName";
				BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
				label3.SetBinding(Label.TextProperty, binding9);
				label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				label3.SetValue(Label.TextColorProperty, Color.DarkBlue);
				stackLayout2.Children.Add(label3);
				bindingExtension10.Path = "HPPercent";
				BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
				bloodbar.SetBinding(ProgressBar.ProgressProperty, binding10);
				bloodbar.SetValue(VisualElement.WidthRequestProperty, 20.0);
				bloodbar.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				stackLayout2.Children.Add(bloodbar);
				bindingExtension11.Path = "HPName";
				BindingBase binding11 = ((IMarkupExtension<BindingBase>)bindingExtension11).ProvideValue(null);
				label4.SetBinding(Label.TextProperty, binding11);
				label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				label4.SetValue(Label.TextColorProperty, Color.Chocolate);
				BindableObject bindableObject3 = label4;
				BindableProperty fontSizeProperty3 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
				string value3 = "12";
				XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
				Type typeFromHandle5 = typeof(IProvideValueTarget);
				int length3;
				object[] array5 = new object[(length3 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array5, 5, length3);
				object[] array6 = array5;
				array6[0] = label4;
				array6[1] = stackLayout2;
				array6[2] = stackLayout3;
				array6[3] = frame;
				array6[4] = viewCell;
				object service3;
				xamlServiceProvider3.Add(typeFromHandle5, service3 = new SimpleValueTargetProvider(array6, Label.FontSizeProperty, nameScope));
				xamlServiceProvider3.Add(typeof(IReferenceProvider), service3);
				Type typeFromHandle6 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();
				xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver3.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver3.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver3.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26).GetTypeInfo().Assembly));
				xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(67, 124)));
				bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
				stackLayout2.Children.Add(label4);
				bindingExtension12.Path = "fleetId";
				bindingExtension12.StringFormat = "舰队:{0}";
				BindingBase binding12 = ((IMarkupExtension<BindingBase>)bindingExtension12).ProvideValue(null);
				label5.SetBinding(Label.TextProperty, binding12);
				label5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject4 = label5;
				BindableProperty fontSizeProperty4 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter4 = new FontSizeConverter();
				string value4 = "12";
				XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
				Type typeFromHandle7 = typeof(IProvideValueTarget);
				int length4;
				object[] array7 = new object[(length4 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array7, 5, length4);
				object[] array8 = array7;
				array8[0] = label5;
				array8[1] = stackLayout2;
				array8[2] = stackLayout3;
				array8[3] = frame;
				array8[4] = viewCell;
				object service4;
				xamlServiceProvider4.Add(typeFromHandle7, service4 = new SimpleValueTargetProvider(array8, Label.FontSizeProperty, nameScope));
				xamlServiceProvider4.Add(typeof(IReferenceProvider), service4);
				Type typeFromHandle8 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();
				xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver4.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver4.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver4.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26).GetTypeInfo().Assembly));
				xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(68, 126)));
				bindableObject4.SetValue(fontSizeProperty4, extendedTypeConverter4.ConvertFromInvariantString(value4, xamlServiceProvider4));
				label5.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(label5);
				bindingExtension13.Path = "love";
				bindingExtension13.StringFormat = "好感: {0}";
				BindingBase binding13 = ((IMarkupExtension<BindingBase>)bindingExtension13).ProvideValue(null);
				label6.SetBinding(Label.TextProperty, binding13);
				label6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject5 = label6;
				BindableProperty fontSizeProperty5 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter5 = new FontSizeConverter();
				string value5 = "12";
				XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
				Type typeFromHandle9 = typeof(IProvideValueTarget);
				int length5;
				object[] array9 = new object[(length5 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array9, 5, length5);
				object[] array10 = array9;
				array10[0] = label6;
				array10[1] = stackLayout2;
				array10[2] = stackLayout3;
				array10[3] = frame;
				array10[4] = viewCell;
				object service5;
				xamlServiceProvider5.Add(typeFromHandle9, service5 = new SimpleValueTargetProvider(array10, Label.FontSizeProperty, nameScope));
				xamlServiceProvider5.Add(typeof(IReferenceProvider), service5);
				Type typeFromHandle10 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();
				xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver5.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver5.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver5.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver5.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_26).GetTypeInfo().Assembly));
				xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(69, 124)));
				bindableObject5.SetValue(fontSizeProperty5, extendedTypeConverter5.ConvertFromInvariantString(value5, xamlServiceProvider5));
				label6.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(label6);
				image6.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("explore.png"));
				bindingExtension14.Path = "IsInExplore";
				BindingBase binding14 = ((IMarkupExtension<BindingBase>)bindingExtension14).ProvideValue(null);
				image6.SetBinding(VisualElement.IsVisibleProperty, binding14);
				image6.SetValue(VisualElement.WidthRequestProperty, 52.0);
				image6.SetValue(VisualElement.HeightRequestProperty, 16.0);
				image6.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(image6);
				image7.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("repair.png"));
				bindingExtension15.Path = "IsInRepair";
				BindingBase binding15 = ((IMarkupExtension<BindingBase>)bindingExtension15).ProvideValue(null);
				image7.SetBinding(VisualElement.IsVisibleProperty, binding15);
				image7.SetValue(VisualElement.WidthRequestProperty, 52.0);
				image7.SetValue(VisualElement.HeightRequestProperty, 16.0);
				image7.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(image7);
				stackLayout3.Children.Add(stackLayout2);
				frame.SetValue(ContentView.ContentProperty, stackLayout3);
				viewCell.View = frame;
				return viewCell;
			}

			// Token: 0x04000050 RID: 80
			internal object[] parentValues;

			// Token: 0x04000051 RID: 81
			internal ShipConfig root;
		}

		// Token: 0x02000027 RID: 39
		[CompilerGenerated]
		private sealed class <InitializeComponent>_anonXamlCDataTemplate_27
		{
			// Token: 0x060000A0 RID: 160 RVA: 0x00016BF8 File Offset: 0x00014DF8
			internal object LoadDataTemplate()
			{
				BindingExtension bindingExtension = new BindingExtension();
				Image image = new Image();
				BindingExtension bindingExtension2 = new BindingExtension();
				Label label = new Label();
				AbsoluteLayout absoluteLayout = new AbsoluteLayout();
				BindingExtension bindingExtension3 = new BindingExtension();
				Label label2 = new Label();
				StackLayout stackLayout = new StackLayout();
				Frame frame = new Frame();
				NameScope nameScope = new NameScope();
				NameScope.SetNameScope(frame, nameScope);
				frame.SetValue(View.MarginProperty, new Thickness(1.0));
				frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(1.0));
				stackLayout.SetValue(StackLayout.SpacingProperty, 0.0);
				absoluteLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
				absoluteLayout.SetValue(VisualElement.WidthRequestProperty, 36.0);
				absoluteLayout.SetValue(VisualElement.HeightRequestProperty, 36.0);
				bindingExtension.Path = "Image";
				BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
				image.SetBinding(Image.SourceProperty, binding);
				image.SetValue(VisualElement.WidthRequestProperty, 36.0);
				image.SetValue(VisualElement.HeightRequestProperty, 36.0);
				absoluteLayout.Children.Add(image);
				bindingExtension2.Path = "num";
				BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
				label.SetBinding(Label.TextProperty, binding2);
				label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
				label.SetValue(View.VerticalOptionsProperty, LayoutOptions.EndAndExpand);
				label.SetValue(Label.TextColorProperty, Color.White);
				label.SetValue(VisualElement.BackgroundColorProperty, Color.Gray);
				BindableObject bindableObject = label;
				BindableProperty fontSizeProperty = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
				string value = "10";
				XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
				Type typeFromHandle = typeof(IProvideValueTarget);
				int length;
				object[] array = new object[(length = this.parentValues.Length) + 4];
				Array.Copy(this.parentValues, 0, array, 4, length);
				object[] array2 = array;
				array2[0] = label;
				array2[1] = absoluteLayout;
				array2[2] = stackLayout;
				array2[3] = frame;
				object service;
				xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
				xamlServiceProvider.Add(typeof(IReferenceProvider), service);
				Type typeFromHandle2 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
				xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_27).GetTypeInfo().Assembly));
				xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(140, 44)));
				bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
				label.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.0, 0.0, 0.95, 0.95));
				label.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.SizeProportional);
				absoluteLayout.Children.Add(label);
				stackLayout.Children.Add(absoluteLayout);
				bindingExtension3.Path = "Name";
				BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
				label2.SetBinding(Label.TextProperty, binding3);
				label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
				label2.SetValue(Label.LineBreakModeProperty, LineBreakMode.NoWrap);
				BindableObject bindableObject2 = label2;
				BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
				string value2 = "8";
				XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
				Type typeFromHandle3 = typeof(IProvideValueTarget);
				int length2;
				object[] array3 = new object[(length2 = this.parentValues.Length) + 3];
				Array.Copy(this.parentValues, 0, array3, 3, length2);
				object[] array4 = array3;
				array4[0] = label2;
				array4[1] = stackLayout;
				array4[2] = frame;
				object service2;
				xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
				xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
				Type typeFromHandle4 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
				xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver2.Add("syncfusion", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xmlNamespaceResolver2.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xmlNamespaceResolver2.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ShipConfig.<InitializeComponent>_anonXamlCDataTemplate_27).GetTypeInfo().Assembly));
				xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(142, 117)));
				bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
				stackLayout.Children.Add(label2);
				frame.SetValue(ContentView.ContentProperty, stackLayout);
				return frame;
			}

			// Token: 0x04000052 RID: 82
			internal object[] parentValues;

			// Token: 0x04000053 RID: 83
			internal ShipConfig root;
		}
	}
}
